'''
Created on 14.10.2011

@author: hkh
'''

from CashFlowUtils.IceBonds import *
from Calendar.Iceland import *
from datetime import date
from datetime import timedelta
from TimeUtils.utils import submonth

ddate = date(2011,10,12)
ccpi = 381.78 # 11.10.2011 381.70   13.10.2011 381.86

yld = -0.015
sec1 = HFF150914()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150224()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150434()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150644()
print sec1.dirtyPrice(ddate, yld, ccpi)
print '-------------------'
yld = 0.02
sec1 = HFF150914()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150224()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150434()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150644()
print sec1.dirtyPrice(ddate, yld, ccpi)
print '-------------------'
yld = 0.03
sec1 = HFF150914()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150224()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150434()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150644()
print sec1.dirtyPrice(ddate, yld, ccpi)
print '-------------------'
yld = 0.04
sec1 = HFF150914()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150224()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150434()
print sec1.dirtyPrice(ddate, yld, ccpi)
sec1 = HFF150644()
print sec1.dirtyPrice(ddate, yld, ccpi)
print '-------------------'
ccpi = 381.86
yld = -0.015
sec1 = RIKS210414()
print sec1.dirtyPrice(ddate, yld, ccpi)
yld = 0.02
sec1 = RIKS210414()
print sec1.dirtyPrice(ddate, yld, ccpi)
yld = 0.03
sec1 = RIKS210414()
print sec1.dirtyPrice(ddate, yld, ccpi)
yld = 0.04
sec1 = RIKS210414()
print sec1.dirtyPrice(ddate, yld, ccpi)
